<?php
/*
+-----------------------------------------------------------------------------+
| $Id: *.php,v 1.* 2005/07/01 06:15:08 Bleakwind Exp $
| SnowStats
|         --- A Web Statistics Analysis for multiuser
| Copyright (c) 2003-2005 Weaverdream.com By Bleakwind
| http://www.weaverdream.com
+-----------------------------------------------------------------------------+
*/

?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $LANGUAGE['charset'];?>">
<meta name="keywords" content="<?php echo $LANGUAGE['meta_keywords'];?>">
<meta name="description" content="<?php echo $LANGUAGE['meta_description'];?>">
<title><?php echo CONFIG_WEBSITE;?> - SnowStats</title>
<link href="include/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="include/js.js"></script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="images/bg_index.gif">
<table width="760" height="60" cellpadding="0" cellspacing="0" border="0" bgcolor="#5E94DD" align="center">
  <tr>
    <td align="left"><img src="images/logo.gif" border="0"></td>
    <td align="right" valign="top">
      <span class="right_subject">
      Language:
      <?php
      $file_list     = return_dir("language/");
      $total_record = count($file_list);
      echo "<select name='language' class='select' size=1  onChange='top.location.href=this.options[this.selectedIndex].value'>";
      $selected = ($_SESSION['sess_language'] == CONFIG_LANGUAGE) ? " selected" : "";
      echo "<option value='index.php?lang=".CONFIG_LANGUAGE."' ".$selected.">".CONFIG_LANGUAGE."</option>";
      for($i=0;$i<$total_record;$i++){
        if(trim($file_list[$i]) != CONFIG_LANGUAGE){
            $selected = ($_SESSION['sess_language'] == trim($file_list[$i])) ? " selected" : "";
            echo "<option value='index.php?lang=".$file_list[$i]."' ".$selected.">".$file_list[$i]."</option>";
        }
      }
      echo "</select>";
      ?>
      &nbsp;
      </span>
    </td>
  </tr>
</table>
<table width="760" height="3" align="center" cellpadding="0" cellspacing="0" border="0" background="images/line.gif"><tr><td></td></tr></table>
